using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class PT_ActionHistoryManagerBase
    {
        public PT_ActionHistoryManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity Insert(PT_ActionHistoryEntity obj)
        { 
            return (PT_ActionHistoryEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity Update(PT_ActionHistoryEntity obj)
        { 
            return (PT_ActionHistoryEntity)Adapter.Update(obj);             
        }
 
 
      
 
 
        public PT_ActionHistoryEntity Delete(PT_ActionHistoryEntity obj)
        { 
            return (PT_ActionHistoryEntity)Adapter.Delete(obj);             
        }
 
 



        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ActionDate duoc set trong object
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity DeleteByActionDate (PT_ActionHistoryEntity obj)
        { 
            return (PT_ActionHistoryEntity)Adapter.DeleteByField(obj,"ActionDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ActionDate 
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity DeleteByActionDate (DateTime ActionDate )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.ActionDate = ActionDate;  
            return (PT_ActionHistoryEntity)Adapter.DeleteByField(obj,"ActionDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ActionName duoc set trong object
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity DeleteByActionName (PT_ActionHistoryEntity obj)
        { 
            return (PT_ActionHistoryEntity)Adapter.DeleteByField(obj,"ActionName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ActionName 
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity DeleteByActionName (string ActionName )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.ActionName = ActionName;  
            return (PT_ActionHistoryEntity)Adapter.DeleteByField(obj,"ActionName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity DeleteByDescription (PT_ActionHistoryEntity obj)
        { 
            return (PT_ActionHistoryEntity)Adapter.DeleteByField(obj,"Description");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Description 
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity DeleteByDescription (string Description )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.Description = Description;  
            return (PT_ActionHistoryEntity)Adapter.DeleteByField(obj,"Description");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity DeleteById (PT_ActionHistoryEntity obj)
        { 
            return (PT_ActionHistoryEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id 
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity DeleteById (int Id )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.Id = Id;  
            return (PT_ActionHistoryEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity DeleteByUserId (PT_ActionHistoryEntity obj)
        { 
            return (PT_ActionHistoryEntity)Adapter.DeleteByField(obj,"UserId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserId 
        /// </summary>
        /// <returns>PT_ActionHistoryEntity</returns>
        public PT_ActionHistoryEntity DeleteByUserId (int UserId )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.UserId = UserId;  
            return (PT_ActionHistoryEntity)Adapter.DeleteByField(obj,"UserId");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public PT_ActionHistoryEntity Select(PT_ActionHistoryEntity obj)
        { 
            return (PT_ActionHistoryEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_ActionHistoryEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_ActionHistoryEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new PT_ActionHistoryEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new PT_ActionHistoryEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_ActionHistoryEntity> SelectAllLST()
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_ActionHistoryEntity()),new PT_ActionHistoryEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_ActionHistoryEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_ActionHistoryEntity(),option),new PT_ActionHistoryEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByActionDate (PT_ActionHistoryEntity obj)
        { 
            return Adapter.SelectByField(obj,"ActionDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByActionDate (PT_ActionHistoryEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ActionDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectByActionDateLST (PT_ActionHistoryEntity obj)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ActionDate"),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectByActionDateLST (PT_ActionHistoryEntity obj,SelectOptions option)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ActionDate",option),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByActionDate (DateTime ActionDate )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.ActionDate = ActionDate;  
            return Adapter.SelectByField(obj,"ActionDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByActionDate (DateTime ActionDate, SelectOptions option)
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.ActionDate = ActionDate;  
            return Adapter.SelectByField(obj,"ActionDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ActionHistoryEntity> SelectByActionDateLST (DateTime ActionDate )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.ActionDate = ActionDate;  
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ActionDate"),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ActionHistoryEntity> SelectByActionDateLST (DateTime ActionDate, SelectOptions option)
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.ActionDate = ActionDate;  
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ActionDate",option),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByActionName (PT_ActionHistoryEntity obj)
        { 
            return Adapter.SelectByField(obj,"ActionName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByActionName (PT_ActionHistoryEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ActionName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionName duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectByActionNameLST (PT_ActionHistoryEntity obj)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ActionName"),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionName duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectByActionNameLST (PT_ActionHistoryEntity obj,SelectOptions option)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ActionName",option),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionName 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByActionName (string ActionName )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.ActionName = ActionName;  
            return Adapter.SelectByField(obj,"ActionName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByActionName (string ActionName, SelectOptions option)
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.ActionName = ActionName;  
            return Adapter.SelectByField(obj,"ActionName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionName 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ActionHistoryEntity> SelectByActionNameLST (string ActionName )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.ActionName = ActionName;  
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ActionName"),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ActionName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ActionHistoryEntity> SelectByActionNameLST (string ActionName, SelectOptions option)
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.ActionName = ActionName;  
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ActionName",option),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (PT_ActionHistoryEntity obj)
        { 
            return Adapter.SelectByField(obj,"Description");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (PT_ActionHistoryEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Description",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectByDescriptionLST (PT_ActionHistoryEntity obj)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Description"),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectByDescriptionLST (PT_ActionHistoryEntity obj,SelectOptions option)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Description",option),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (string Description )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.Description = Description;  
            return Adapter.SelectByField(obj,"Description");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (string Description, SelectOptions option)
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.Description = Description;  
            return Adapter.SelectByField(obj,"Description",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ActionHistoryEntity> SelectByDescriptionLST (string Description )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.Description = Description;  
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Description"),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ActionHistoryEntity> SelectByDescriptionLST (string Description, SelectOptions option)
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.Description = Description;  
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Description",option),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (PT_ActionHistoryEntity obj)
        { 
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (PT_ActionHistoryEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectByIdLST (PT_ActionHistoryEntity obj)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectByIdLST (PT_ActionHistoryEntity obj,SelectOptions option)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Id",option),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (int Id )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (int Id, SelectOptions option)
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ActionHistoryEntity> SelectByIdLST (int Id )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.Id = Id;  
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ActionHistoryEntity> SelectByIdLST (int Id, SelectOptions option)
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.Id = Id;  
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id",option),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (PT_ActionHistoryEntity obj)
        { 
            return Adapter.SelectByField(obj,"UserId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (PT_ActionHistoryEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UserId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectByUserIdLST (PT_ActionHistoryEntity obj)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId"),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectByUserIdLST (PT_ActionHistoryEntity obj,SelectOptions option)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UserId",option),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (int UserId )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.UserId = UserId;  
            return Adapter.SelectByField(obj,"UserId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (int UserId, SelectOptions option)
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.UserId = UserId;  
            return Adapter.SelectByField(obj,"UserId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ActionHistoryEntity> SelectByUserIdLST (int UserId )
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.UserId = UserId;  
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId"),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ActionHistoryEntity> SelectByUserIdLST (int UserId, SelectOptions option)
        { 
            PT_ActionHistoryEntity obj = new PT_ActionHistoryEntity();
            obj.UserId = UserId;  
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId",option),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectWithConditionLST (PT_ActionHistoryEntity obj)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new PT_ActionHistoryEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_ActionHistoryEntity></returns>
        public List<PT_ActionHistoryEntity> SelectWithConditionLST (PT_ActionHistoryEntity obj,SelectOptions option)
        { 
            return  (List<PT_ActionHistoryEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new PT_ActionHistoryEntity());
        }

}
}
